Skip to main content

Import

Usage

Return Type: UseQueryResult<Transaction[]>

The hook returns all properties from React Query’s UseQueryResult with transaction data. Here’s the detailed structure:

Properties

data

Transaction[] | undefined Array of transactions from all specified chains, sorted by timestamp (newest first). Each transaction includes:
  • txnHash: Transaction hash
  • chainId: Chain ID where transaction occurred
  • timestamp: Transaction timestamp
  • blockNumber: Block number where transaction was mined
  • blockHash: Hash of the block
  • metaTxnID: Optional meta transaction ID
  • transfers: Array of transfer objects with normalized addresses

isLoading

boolean Loading state for the initial data fetch.

isError

boolean Error state indicating if the query failed.

error

Error | null Any error that occurred during data fetching.

Parameters

The hook accepts two parameters:

args: GetTransactionHistorySummaryArgs

options: HooksOptions